import type { TableColumn } from '@/components/core/dynamic-table';

export const columns: TableColumn[] = [
  {
    title: '标题',
    align: 'center',
    dataIndex: 'title',
    sorter: true,
    width: 300,
    customRender: ({ record }) => 5555 + record.title,
  },
  {
    title: '内容',
    align: 'center',
    dataIndex: 'body',
    sorter: true,
    width: 300,
    hideInSearch: true,
  },
  {
    title: '操作',
    align: 'center',
    width: 120,
    dataIndex: 'ACTION',
    actions: ({ record }) => [
      {
        label: '查看详情',
        onClick: () => window.open(record.infourl),
      },
    ],
  },
];
